import { Request } from 'express';
import { req_cur_headers_info } from '../../../../../../../../../Classes/cla_req_cur_headers_info';

const req_cur_user_create_uni_float_infoTag =
  'req_cur_user_create_uni_float_info';

export class req_cur_user_create_uni_float_info extends req_cur_headers_info {
  get [Symbol.toStringTag]() {
    return req_cur_user_create_uni_float_infoTag;
  }

  constructor(req: Request) {
    super(req);

    let req_body = req.body;

    this.tag = req_body.tag;
    this.class = req_body.class;
    this.style = req_body.style;
    this.content = req_body.content;
    this.describe = req_body.describe;
  }

  /**
   * 自动分配 当前用户 未有 id
   */
  id: string = '';

  /**
   * 浮动元素 标签名
   */
  tag: HTMLElementTagNameMap;

  /**
   * 填充 内容
   */
  content: any;

  /**
   * 悬浮 描述
   * 长按 功能描述 显示
   */
  describe?: string;

  /**
   * 类 集合
   */
  class: string[];

  /**
   * 自定义 内嵌 样式
   */
  style: string;
}
